<?php

use Drupal\shusy_store_order\Entity\ShusyStoreOrder;

function shusy_store_order_shusy_store_order_add_page() {
  $e = new ShusyStoreOrder();
  module_load_include('inc', 'shusy_store_order', 'shusy_store_order.forms');
  return drupal_get_form('shusy_store_order_shusy_store_order_entity_form', $e, 'add');
}

function shusy_store_order_shusy_store_order_view_page(ShusyStoreOrder $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_store_order_shusy_store_order_edit_page(ShusyStoreOrder $e) {
  module_load_include('inc', 'shusy_store_order', 'shusy_store_order.forms');
  return drupal_get_form('shusy_store_order_shusy_store_order_entity_form', $e, 'edit');
}

function shusy_store_order_shusy_store_order_delete_page(ShusyStoreOrder $e) {
  module_load_include('inc', 'shusy_store_order', 'shusy_store_order.forms');
  return drupal_get_form('shusy_store_order_shusy_store_order_delete_form', $e);
}

